<?php

class lib_Options
{
	protected $_options = array('name'					=>  '',
								'targetPath'            =>  'forms',
								'parserPath'            =>  'Parser',
								'suffix'                =>  '.php',
								'buildFactory'          =>  'Plain',
                                'generateBaseClasses'   =>  true,
                                'generateFormClasses'   =>  true,
                                'baseClassPrefix'       =>  'Base',
                                'baseClassesDirectory'  =>  'generated',
                                'baseExtends'           =>  '',
								'formExtends'           =>  '',
								'parser'                =>  'Plain');
													  
													  
	public function getOption($name)
    {
        if (isset($this->_options[$name]))   {
            return $this->_options[$name];
        }
    }

    public function getOptions()
    {
        return $this->_options;
    }

    public function setOption($name, $value)
    {
        if (isset($this->_options[$name])) {
            $this->_options[$name] = $value;
        }
    }

    public function setOptions($options)
    {
        if ( ! empty($options)) {
          $this->_options = $options;
        }
    }	
											  
}

?>